home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 101-125 / disk_107 / csh / globals.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  3KB  |  91 lines

  1.  
  2. /*
  3.  * GLOBALS.C
  4.  *
  5.  * (c)1986 Matthew Dillon     9 October 1986
  6.  *
  7.  * Version 2.07M by Steve Drew 10-Sep-87
  8.  *
  9.  *    Most global variables.
  10.  *
  11.  */
  12.  
  13.  
  14. #include "shell.h"
  15.  
  16. struct HIST *H_head, *H_tail;            /* HISTORY lists      */ 
  17.  
  18. struct PERROR Perror[] = {            /* error code->string */
  19.    103,     "Insufficient free storage",
  20.    105,     "Task table full",
  21.    120,     "Argument line invalid or too long",
  22. /* 121,     "File is not an object module", Can't detect this at the present */ 
  23.    122,     "Invalid resident library during load",
  24.    201,     "No default directory",
  25.    202,     "Object in use",
  26.    203,     "Object already exists",
  27.    204,     "Directory not found",
  28.    205,     "Object not found",
  29.    206,     "Bad stream name",
  30.    207,     "Object too large",
  31.    209,     "Action not known",
  32.    210,     "Invalid stream component name",
  33.    211,     "Invalid object lock",
  34.    212,     "Object not of required type",
  35.    213,     "Disk not validated",
  36.    214,     "Disk write protected",
  37.    215,     "Rename across devices",
  38.    216,     "Directory not empty",
  39.    217,     "Too many levels",
  40.    218,     "Device not mounted",
  41.    219,     "Seek error",
  42.    220,     "Comment too long",
  43.    221,     "Disk full",
  44.    222,     "File delete protected",
  45.    223,     "File write protected",
  46.    224,     "File read protected",
  47.    225,     "Not a DOS disk",
  48.    226,     "No disk",
  49.  
  50.    /* custom error messages */
  51.  
  52.    500,     "Bad arguments",
  53.    501,     "Label not found",
  54.    502,     "Must be within source file",
  55.    503,     "Syntax Error",
  56.    504,     "Redirection error",
  57.    505,     "Pipe error",
  58.    506,     "Too many arguments",
  59.    507,     "Destination not a directory",
  60.    508,     "Cannot mv a filesystem",
  61.    509,  "Error in command name",
  62.      0,     NULL
  63. };
  64.  
  65.  
  66. char  *av[MAXAV];          /* Internal argument list            */
  67. long  Src_base[MAXSRC];          /* file pointers for source files        */
  68. long  Src_pos[MAXSRC];          /* seek position storage for same        */
  69. char  If_base[MAXIF];          /* If/Else stack for conditionals        */
  70. int   H_len, H_tail_base;     /* History associated stuff        */
  71. int   H_stack;              /* AddHistory disable stack        */
  72. int   E_stack;              /* Exception disable stack        */
  73. int   Src_stack, If_stack;    /* Stack Indexes                */
  74. int   forward_goto;          /* Flag for searching for foward lables   */
  75. int   ac;              /* Internal argc                */
  76. int   debug;              /* Debug mode                */
  77. int   disable;              /* Disable com. execution (conditionals)    */
  78. int   Verbose;              /* Verbose mode for source files        */
  79. int   Lastresult;          /* Last return code            */
  80. int   Exec_abortline;          /* flag to abort rest of line        */
  81. int   Quit;              /* Quit flag                */
  82. long  Cout, Cin;          /* Current input and output file handles    */
  83. long  Cout_append;          /* append flag for Cout            */
  84. long  Uniq;              /* unique value                */
  85. char  *Cin_name, *Cout_name;  /* redirection input/output name or NULL    */
  86. char  *Pipe1, *Pipe2;          /* the two pipe temp. files        */
  87. struct Process *Myprocess;
  88. int   S_histlen = 20;          /* Max # history entries            */
  89.  
  90.  
  91.